package io.kiki.sba.registry.store.jdbc.domain;

import java.util.Date;


public class FollowCompeteLockDomain {

    /**
     * local data center
     */
    private String dataCenter;

    /**
     * lock name
     */
    private String lockName;

    /**
     * lock owner
     */
    private String owner;

    /**
     * last update timestamp
     */
    private Date gmtModified;

    /**
     * try to compete new owner
     */
    private String newOwner;

    private long duration;

    private long term;

    private long termDuration;

    public FollowCompeteLockDomain() {
    }

    public FollowCompeteLockDomain(String dataCenter, String lockName, String owner, Date gmtModified, String newOwner, long leaseDuration, long term, long termDuration) {
        this.dataCenter = dataCenter;
        this.lockName = lockName;
        this.owner = owner;
        this.gmtModified = gmtModified;
        this.newOwner = newOwner;
        this.duration = leaseDuration;
        this.term = term;
        this.termDuration = termDuration;
    }


    public String getDataCenter() {
        return dataCenter;
    }


    public void setDataCenter(String dataCenter) {
        this.dataCenter = dataCenter;
    }


    public String getLockName() {
        return lockName;
    }


    public void setLockName(String lockName) {
        this.lockName = lockName;
    }


    public String getOwner() {
        return owner;
    }


    public void setOwner(String owner) {
        this.owner = owner;
    }


    public Date getGmtModified() {
        return gmtModified;
    }


    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }


    public String getNewOwner() {
        return newOwner;
    }


    public void setNewOwner(String newOwner) {
        this.newOwner = newOwner;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public long getTerm() {
        return term;
    }

    public void setTerm(long term) {
        this.term = term;
    }

    public long getTermDuration() {
        return termDuration;
    }

    public void setTermDuration(long termDuration) {
        this.termDuration = termDuration;
    }
}
